package com.aaa.service;


import com.aaa.entity.Role;
import com.aaa.entity.TreeMenu;
import com.aaa.util.BusinessException;

import java.util.List;
import java.util.Map;

public interface RoleService {

    List<Role> getAllRole();

    Map<String,Object> getAllRoleInfo(int pageNumber, int pageSize, String searchName) throws BusinessException;


    int updateOrAddRole(int id, String roleName, String description, int status);

    List<TreeMenu> getMenuList(int roleId);

    /**
     * 更新角色权限
     * @param roleId
     * @param resouceces
     * @return
     */
    int updateMenuList(int roleId, int[] resouceces);

}
